package com.resou.reader.reader.v;

import com.resou.reader.api.entry.BookContentBean;
import com.resou.reader.api.entry.BookDetailBean;
import com.resou.reader.api.entry.ChapterItemBean;
import com.resou.reader.api.entry.ShareTimeBean;
import com.resou.reader.base.v.IView;
import com.resou.reader.reader.manager.PageFactory;

import java.util.List;

/**
 * Created by ${Garrett} on 2018/9/8.
 * Contact me krouky@outlook.com
 */
public interface IReaderView extends IView {

    void refresh(List<ChapterItemBean> list);


    void initPageView(PageFactory pageFactory);

    void errorBook();

    void refreshPageView();

    void setSubSidyState();

    void refreshPayView();

    void showLoading(String text);

    void dismissLoading();

    void onChapterChanged(int chapterIndex);

    boolean isfromCollect();

    boolean isfromJush();

    /**
     * 设置补贴模式成功
     */
    void setSubSidySucess();

    /**
     * 补贴模式弹框
     */
    void showSubSidyDialog();

    /**
     * 是否可以点击
     */
    void isCliable(boolean isCliable);


    /**
     * 跳转到最新的章节
     *
     * @param bookDetailBean
     */
    void toNewChapter(BookDetailBean bookDetailBean);

    void showError(Throwable throwable);

    void refreshShareTime(ShareTimeBean shareTimeBean);

    /**
     * 详情时间
     *
     * @param shareTimeBean
     */
    void refreshShareTime(BookContentBean shareTimeBean);

    /**
     * 刷新增加金额
     *
     * @param shareTimeBean
     */
    void refreshAddMoney(ShareTimeBean shareTimeBean);

    /**
     * 分享成功后显示弹框
     */
    void showShareSuccess();

}
